home *** CD-ROM | disk | FTP | other *** search
- //////////////////////////////////////////////////////////////////////////////
- //
- // Copyright 1997-99 Pandemic Studios
- //
- // Dark Reign II
- //
-
- CreateObjectType("objective_block_ravine", "Objective")
- {
- GameObj();
- ObjectiveObj()
- {
- Condition("AND")
- {
- Condition("InRegion")
- {
- Region("monkey_power1");
- Team("JDA");
- Type("jda.building.solarpower")
- {
- Amount(0);
- Operator(">");
- }
- }
- Condition("InRegion")
- {
- Region("monkey_power2");
- Team("JDA");
- Type("jda.building.solarpower")
- {
- Amount(0);
- Operator(">");
- }
- }
- Condition("VarConstInteger", "@.basegone", "==", 0);
- }
-
- Action()
- {
- NewObjective("objective_traitors_eliminated");
- NewObjective("objective_lost_power");
- NewObjective("cineractive_DF_online");
- NewObjective("objective_block_ravine_wait");
- ObjectiveAbandoned("objective_blinking2");
- }
- }
- }
-
- CreateObjectType("objective_block_ravine_wait", "Objective")
- {
- GameObj();
- ObjectiveObj()
- {
- Condition("Timer")
- {
- Time(5);
- }
-
- Action()
- {
- DisplayObjective("Complete", "objective_block_ravine");
- DisplayObjective("Add", "Objective_traitors_eliminated")
- {
- Text("#missions.jda.j03.obj_traitors_eliminated");
- }
- }
- }
- }
-
-
- CreateObjectType("objective_block_ravine2", "Objective")
- {
- GameObj();
- ObjectiveObj()
- {
- Condition("And")
- {
- Condition("InRegion")
- {
- Region("monkey_power1");
- Team("JDA");
- Type("jda.building.solarpower")
- {
- Amount(0);
- Operator(">");
- }
- }
- Condition("InRegion")
- {
- Region("monkey_power2");
- Team("JDA");
- Type("jda.building.solarpower")
- {
- Amount(0);
- Operator(">");
- }
- }
- Condition("VarConstInteger", "@.basegone", "==", 1);
- }
-
- Action()
- {
- NewObjective("cineractive_outro");
- NewObjective("objective_block_ravine2_wait");
- ObjectiveAbandoned("objective_blinking2");
- SetTeam()
- {
- Team("DF_on");
- Tag("DF");
- }
- WallOperation()
- {
- Tag("DF");
- Operation("AutoConnect");
- }
- }
- }
- }
-
- CreateObjectType("objective_block_ravine2_wait", "Objective")
- {
- GameObj();
- ObjectiveObj()
- {
- Condition("Timer")
- {
- Time(5);
- }
-
- Action()
- {
- DisplayObjective("Complete", "objective_traitors_eliminated");
- DisplayObjective("Complete", "objective_block_ravine");
- }
- }
- }
-
-
- CreateObjectType("objective_lost_power", "Objective")
- {
- GameObj();
- ObjectiveObj()
- {
- Condition("OR")
- {
- Condition("InRegion")
- {
- Region("monkey_power1");
- Team("JDA");
- Type("jda.building.solarpower")
- {
- Amount(1);
- Operator("<");
- }
- }
- Condition("InRegion")
- {
- Region("monkey_power2");
- Team("JDA");
- Type("jda.building.solarpower")
- {
- Amount(1);
- Operator("<");
- }
- }
- }
-
- Action()
- {
- GameMessage()
- {
- Message("msg_lost_power");
- }
- SetTeam()
- {
- Team("DF_off");
- Tag("DF");
- }
- WallOperation()
- {
- Tag("DF");
- Operation("Deactivate");
- }
- NewObjective("objective_got_it_back");
- DisplayObjective("Incomplete", "objective_block_ravine");
- }
- }
- }
-
- CreateObjectType("objective_got_it_back", "Objective")
- {
- GameObj();
- ObjectiveObj()
- {
- Condition("AND")
- {
- Condition("InRegion")
- {
- Region("monkey_power1");
- Team("JDA");
- Type("jda.building.solarpower")
- {
- Amount(0);
- Operator(">");
- }
- }
- Condition("InRegion")
- {
- Region("monkey_power2");
- Team("JDA");
- Type("jda.building.solarpower")
- {
- Amount(0);
- Operator(">");
- }
- }
- }
-
- Action()
- {
- GameMessage()
- {
- Message("msg_got_it_back");
- }
- SetTeam()
- {
- Team("DF_on");
- Tag("DF");
- }
- WallOperation()
- {
- Tag("DF");
- Operation("AutoConnect");
- }
- NewObjective("objective_lost_power");
- DisplayObjective("Complete", "objective_block_ravine");
- }
- }
- }
-
- CreateObjectType("objective_one_down", "Objective")
- {
- GameObj();
- ObjectiveObj()
- {
- Condition("OR")
- {
- Condition("InRegion")
- {
- Region("monkey_power1");
- Team("JDA");
- Type("jda.building.solarpower")
- {
- Amount(0);
- Operator(">");
- }
- }
- Condition("InRegion")
- {
- Region("monkey_power2");
- Tean("JDA");
- Type("jda.building.solarpower")
- {
- Amount(0);
- Operator(">");
- }
- }
- }
-
- Action()
- {
- GameMessage()
- {
- Message("msg_one_down");
- }
- Animate()
- {
- Tag("DF");
- Cycle("preprocess");
- }
- ObjectiveAbandoned("objective_blinking2");
- }
- }
- }
-
- CreateObjectType("objective_warden", "Objective")
- {
- GameObj();
- ObjectiveObj()
- {
- Condition("HaveType")
- {
- Type("jda.building.motorpool1")
- {
- Amount(0);
- Operator(">");
- }
- }
- Action()
- {
- GameMessage()
- {
- Message("msg_traps");
- }
- }
- }
- }
-
-
-